package org.sxm.cloud.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.sxm.cloud.dto.pay.PayDTO;

/**
 * 支付服务
 */
@FeignClient(name = "pay-svc")
public interface PayClient {

    /**
     * 订单支付
     *
     * @param payDTO 支付详情
     * @return
     */
    @PostMapping("/pay")
    int pay(@RequestBody PayDTO payDTO);
}
